/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marifnst.jse71.creating_and_using_arrays;

/**
 *
 * @author arifnasution
 */
public class Driver
{

    public static void main( String args[] )
    {
        SampleArray sampleArray = new SampleArray();
        sampleArray.oneDimension();
        sampleArray.twoDimension();
        
        System.out.println("=== sample one dimension array 1");
        for (int i : sampleArray.getSampleOneDimension_1()) {
            System.out.println(i);
        }
        
        System.out.println("=== sample one dimension array 2");
        for (int i : sampleArray.getSampleOneDimension_2()) {
            System.out.println(i);
        }
        
        System.out.println("=== sample two dimension array 1");
        for (int[] i : sampleArray.getSampleTwoDimension_1()) {
            for (int ii : i)
            {
                System.out.println(ii);
            }
        }
        
        System.out.println("=== sample two dimension array 2");
        for (int[] i : sampleArray.getSampleTwoDimension_2()) {
            for (int ii : i)
            {
                System.out.println(ii);
            }
        }
        
        SampleArrayList sampleArrayList = new SampleArrayList();
        sampleArrayList.arrayList();
        
        System.out.println("=== sample list");
        for (String s : sampleArrayList.getSampleList())
        {
            System.out.println(s);
        }
        
        System.out.println("=== sample array list");
        for (String s : sampleArrayList.getSampleArrayList())
        {
            System.out.println(s);
        }
    }
}
